package com.xbell.app.sys.openfeign;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import feign.RequestInterceptor;
import feign.RequestTemplate;


@Component
public class MyInterceptor implements RequestInterceptor{

Logger logger = LoggerFactory.getLogger(getClass());
	
	@Override
	public void apply(RequestTemplate template) {
		logger.warn("from MyInterceptor");
		template.query("token", "MyInterceptor");
		
	}

}
